/**
 * 
 * @Author:cxy
 * @Date:2019/10/24 15:11
 */
package com.cx.common.utils;

public class PasswordUtil {

	/**
	 * 获取加密后的登录密码
	 * 
	 * @param source
	 *            明文密码
	 * @param account
	 *            账号名
	 * @param createtime
	 *            用户注册时间毫秒数
	 * @return
	 */
	public static String getMemberPassword(String source, String account, String createtime) {
		StringBuffer sb = new StringBuffer();
		String md5 = "";
		// MD5.getMD5Code(source);
		md5 = Md5Util.getMD5Code(source + account + createtime);
		sb.append("s").append(md5.substring(0, 31));
		return sb.toString();
	}
}
